﻿using Microsoft.EntityFrameworkCore;
using Service.Context;
using Service.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Service.Service
{
    public class TestService
    {
        private readonly EFContext _ef;
        public TestService(EFContext ef) 
        {
            _ef= ef;
        }

        public List<Test> GetTests() 
        {
            return _ef.tests.AsNoTracking().ToList();
        }
    }
}
